Optimal. Leaf size=26 \[ -\frac {(-a-b x)^{-n} (a+b x)^n}{2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {23, 30}
\begin {gather*} -\frac {(-a-b x)^{-n} (a+b x)^n}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 30
Rubi steps
\begin {align*} \int \frac {(-a-b x)^{-n} (a+b x)^n}{x^3} \, dx &=\left ((-a-b x)^{-n} (a+b x)^n\right ) \int \frac {1}{x^3} \, dx\\ &=-\frac {(-a-b x)^{-n} (a+b x)^n}{2 x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 26, normalized size = 1.00 \begin {gather*} -\frac {(-a-b x)^{-n} (a+b x)^n}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 25, normalized size = 0.96
method | result | size |
gosper | \(-\frac {\left (b x +a \right )^{n} \left (-b x -a \right )^{-n}}{2 x^{2}}\) | \(25\) |
risch | \(-\frac {\left (b x +a \right )^{n} {\mathrm e}^{-n \left (i \pi \mathrm {csgn}\left (i \left (b x +a \right )\right )^{3}-i \pi \mathrm {csgn}\left (i \left (b x +a \right )\right )^{2}+i \pi +\ln \left (b x +a \right )\right )}}{2 x^{2}}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.36, size = 8, normalized size = 0.31 \begin {gather*} -\frac {\left (-1\right )^{n}}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.49, size = 9, normalized size = 0.35 \begin {gather*} -\frac {\cos \left (\pi n\right )}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.59, size = 20, normalized size = 0.77 \begin {gather*} - \frac {\left (- a - b x\right )^{- n} \left (a + b x\right )^{n}}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.04, size = 24, normalized size = 0.92 \begin {gather*} -\frac {{\left (a+b\,x\right )}^n}{2\,x^2\,{\left (-a-b\,x\right )}^n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________